@import '../lib/styles/clearfix.less';

/**
*  component FormContainer
* prefix: .mui-formcontainer
*/
.mui-formcontainer {
  &:after {
    content: '';
    display: block;
    width: 100%;
    clear: both;
  }
  .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 .selected-flag {
    width: 72px!important;
  }
  .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-5 .selected-flag {
    width: 80px!important;
  }
  .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 input[type=tel] {
    padding-left: 78px!important;
  }
  .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-5 input[type=tel] {
    padding-left: 86px!important;
  }
}
.mui-formcontainer.hrContainerBox .mui-textinput-content {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding-left: 12px;
}
.mui-formcontainer.otherContainerBox {
  border: 1px solid #e0e0e0;
  background: #fff;
  margin-top: 16px;
  border-radius: 3px;
  .mui-formitem-label{
    text-align: left;
    //height: 40px;
    //line-height: 40px;
  }
  //.mui-formitem-control{
  //  textarea{
  //    min-height: 40px!important;
  //  }
  //  .UploadFiles-header{
  //    padding-top: 11px!important;
  //  }
  //  .mui-linkpicker-add, .mui-textinput-unit-box, .mui-textview, .mui-textinput{
  //    padding-top: 10px!important;
  //  }
  //  .mui-range{
  //    padding-top: 8px!important;
  //  }
  //  .intl-tel-input{
  //    margin-top: 4px!important;
  //  }
  //  .mui-radiogroup, .mui-checkboxgroup, .mui-dropdown, .mui-datetime, .mui-areapicker,
  //  .mui-datetimerange, .mui-departmentpicker, .mui-userpicker{
  //    margin-top: 2px!important;
  //  }
  //}
  .mui-formitem{
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 2px 10px 2px 0;
    position: relative;
    .mui-textinput, .mui-phonenumber, .mui-textinput, .mui-forminput{
      border: 0;
    }
    &.formItem-read {
      color: #757575;
      .mui-formitem-control{
        input.mui-textinput, .intl-tel-input > input, .mui-forminput-label{
          color: #757575;
        }
        .mui-radiogroup .mui-radio-icon.ThemeAfterBGColor3:after{
          background: #bcbcbc!important;
        }
        .mui-radio.mui-radio-disabled, .mui-checkbox.mui-checkbox-disabled, .mui-forminput:disabled, .mui-textinput:disabled{
          cursor: default;
        }
        .icon-bellSchedule, .icon-sp_pin_drop_white, .icon-group-members, .icon-arrow-down-border{
          display: none!important;
        }
      }
    }
    & > .mui-formitem-label{
      &:after {
        top: 13px;
        left: 6px;
        right: auto;
      }
    }
    .errorMessageBox{
      position: absolute;
      top: -24px;
      transform: translateY(-5px);
      z-index: 100;
      left: 5px;
      border-radius: 3px;
      color: #fff;
      padding: 5px 12px;
      white-space: nowrap;
      background: #f44336;
    }
    .ErrorArrow{
      position: absolute;
      top: 32px;
      transform: translateY(-5px);
      z-index: 100;
      left: 12px;
      background: transparent;
      border-width: 6px;
      border-style: solid;
      border-left-color: transparent;
      border-right-color: transparent;
      border-bottom-color: transparent;
      border-top-color: #f44336;
      margin-bottom: -11px;
    }
  }
  .mui-formitem-width-2{
    border-right: 1px solid #e0e0e0;

    + .mui-formitem-width-2 {
      border-left: 1px solid #e0e0e0;
      margin-left: -1px;
      border-right: 0;
    }
  }
  .mui-formitem-error{
    .mui-formitem-label{
      color: #9e9e9e;
    }
    //color: red;
    //input, button{
    //  color: red;
    //}
  }
  .mui-clearfix{
    height: 1px;
    background: #e0e0e0;
  }
  .mui-textinput,
  .mui-textview,
  .mui-linkpicker-add {
    padding-left: 0!important;
    padding-right: 0!important;
  }
  .mui-forminput {
    padding-left: 0!important;
    padding-right: 0!important;
    > .mui-forminput-label {
      padding-left: 0!important;
    }
  }
  .selected-flag {
    width: 66px!important;
    padding-left: 0!important;
  }
  .intl-tel-input.allow-dropdown.separate-dial-code input.mui-phonenumber {
    padding-right: 0!important;
    padding-left: 72px!important;
  }
  .UploadFiles-header {
    background: transparent;
    margin-bottom: 0;
    padding: 9px 0 8px 0;
  }
  .mui-divider {
    border-top: 1px solid #e0e0e0;
    .mui-divider-clear-line {
      border-left: 1px solid #f5f5f5;
      border-right: 1px solid #f5f5f5;
    }
  }
  .mui-forminput:disabled,
  .mui-textinput:disabled,
  .mui-phonenumber:disabled {
    background: #fff;
  }
}
